package com.neusoft.service;

import com.neusoft.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

@Component
@FeignClient(value = "provider-banji")
public interface StudentComsumerService {
    @PostMapping("/student/queryAll")
    Object queryAll(@RequestParam("page") Integer page, @RequestParam("limit")Integer limit, @RequestBody Student student);

    @PostMapping("/student/save")
    public Object save(@RequestBody Student student);

    @PostMapping("/student/delete")
    public boolean delete(@RequestParam("ids") Integer[] ids);

    @PostMapping("/student/upload")
    public  Object imporCourse(@RequestParam("file") MultipartFile file);
}
